(0) Obligation:

Runtime Complexity TRS:
The TRS R consists of the following rules:

r(xs, ys, zs, nil) → xs
r(xs, nil, zs, cons(w, ws)) → r(xs, xs, cons(succ(zero), zs), ws)
r(xs, cons(y, ys), nil, cons(w, ws)) → r(xs, xs, cons(succ(zero), nil), ws)
r(xs, cons(y, ys), cons(z, zs), cons(w, ws)) → r(ys, cons(y, ys), zs, cons(succ(zero), cons(w, ws)))

Rewrite Strategy: FULL

(1) RenamingProof (EQUIVALENT transformation)

Renamed function symbols to avoid clashes with predefined symbol.

(2) Obligation:

Runtime Complexity Relative TRS:
The TRS R consists of the following rules:

r(xs, ys, zs, nil) → xs
r(xs, nil, zs, cons(w, ws)) → r(xs, xs, cons(succ(zero), zs), ws)
r(xs, cons(y, ys), nil, cons(w, ws)) → r(xs, xs, cons(succ(zero), nil), ws)
r(xs, cons(y, ys), cons(z, zs), cons(w, ws)) → r(ys, cons(y, ys), zs, cons(succ(zero), cons(w, ws)))

S is empty.
Rewrite Strategy: FULL

(3) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)

Infered types.

(4) Obligation:

TRS:
Rules:
r(xs, ys, zs, nil) → xs
r(xs, nil, zs, cons(w, ws)) → r(xs, xs, cons(succ(zero), zs), ws)
r(xs, cons(y, ys), nil, cons(w, ws)) → r(xs, xs, cons(succ(zero), nil), ws)
r(xs, cons(y, ys), cons(z, zs), cons(w, ws)) → r(ys, cons(y, ys), zs, cons(succ(zero), cons(w, ws)))

Types:
r :: nil:cons → nil:cons → nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: succ → nil:cons → nil:cons
succ :: zero → succ
zero :: zero
hole_nil:cons1_0 :: nil:cons
hole_succ2_0 :: succ
hole_zero3_0 :: zero
gen_nil:cons4_0 :: Nat → nil:cons

(5) OrderProof (LOWER BOUND(ID) transformation)

Heuristically decided to analyse the following defined symbols:
r

(6) Obligation:

TRS:
Rules:
r(xs, ys, zs, nil) → xs
r(xs, nil, zs, cons(w, ws)) → r(xs, xs, cons(succ(zero), zs), ws)
r(xs, cons(y, ys), nil, cons(w, ws)) → r(xs, xs, cons(succ(zero), nil), ws)
r(xs, cons(y, ys), cons(z, zs), cons(w, ws)) → r(ys, cons(y, ys), zs, cons(succ(zero), cons(w, ws)))

Types:
r :: nil:cons → nil:cons → nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: succ → nil:cons → nil:cons
succ :: zero → succ
zero :: zero
hole_nil:cons1_0 :: nil:cons
hole_succ2_0 :: succ
hole_zero3_0 :: zero
gen_nil:cons4_0 :: Nat → nil:cons

Generator Equations:
gen_nil:cons4_0(0) ⇔ nil
gen_nil:cons4_0(+(x, 1)) ⇔ cons(succ(zero), gen_nil:cons4_0(x))

The following defined symbols remain to be analysed:
r

(7) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
r(gen_nil:cons4_0(0), gen_nil:cons4_0(0), gen_nil:cons4_0(c), gen_nil:cons4_0(n6_0)) → gen_nil:cons4_0(0), rt ∈ Ω(1 + n60)

Induction Base:
r(gen_nil:cons4_0(0), gen_nil:cons4_0(0), gen_nil:cons4_0(c), gen_nil:cons4_0(0)) →RΩ(1)
gen_nil:cons4_0(0)

Induction Step:
r(gen_nil:cons4_0(0), gen_nil:cons4_0(0), gen_nil:cons4_0(c), gen_nil:cons4_0(+(n6_0, 1))) →RΩ(1)
r(gen_nil:cons4_0(0), gen_nil:cons4_0(0), cons(succ(zero), gen_nil:cons4_0(c)), gen_nil:cons4_0(n6_0)) →IH
gen_nil:cons4_0(0)

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(8) Complex Obligation (BEST)

(9) Obligation:

TRS:
Rules:
r(xs, ys, zs, nil) → xs
r(xs, nil, zs, cons(w, ws)) → r(xs, xs, cons(succ(zero), zs), ws)
r(xs, cons(y, ys), nil, cons(w, ws)) → r(xs, xs, cons(succ(zero), nil), ws)
r(xs, cons(y, ys), cons(z, zs), cons(w, ws)) → r(ys, cons(y, ys), zs, cons(succ(zero), cons(w, ws)))

Types:
r :: nil:cons → nil:cons → nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: succ → nil:cons → nil:cons
succ :: zero → succ
zero :: zero
hole_nil:cons1_0 :: nil:cons
hole_succ2_0 :: succ
hole_zero3_0 :: zero
gen_nil:cons4_0 :: Nat → nil:cons

Lemmas:
r(gen_nil:cons4_0(0), gen_nil:cons4_0(0), gen_nil:cons4_0(c), gen_nil:cons4_0(n6_0)) → gen_nil:cons4_0(0), rt ∈ Ω(1 + n60)

Generator Equations:
gen_nil:cons4_0(0) ⇔ nil
gen_nil:cons4_0(+(x, 1)) ⇔ cons(succ(zero), gen_nil:cons4_0(x))

No more defined symbols left to analyse.

(10) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
r(gen_nil:cons4_0(0), gen_nil:cons4_0(0), gen_nil:cons4_0(c), gen_nil:cons4_0(n6_0)) → gen_nil:cons4_0(0), rt ∈ Ω(1 + n60)

(11) BOUNDS(n^1, INF)

(12) Obligation:

TRS:
Rules:
r(xs, ys, zs, nil) → xs
r(xs, nil, zs, cons(w, ws)) → r(xs, xs, cons(succ(zero), zs), ws)
r(xs, cons(y, ys), nil, cons(w, ws)) → r(xs, xs, cons(succ(zero), nil), ws)
r(xs, cons(y, ys), cons(z, zs), cons(w, ws)) → r(ys, cons(y, ys), zs, cons(succ(zero), cons(w, ws)))

Types:
r :: nil:cons → nil:cons → nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: succ → nil:cons → nil:cons
succ :: zero → succ
zero :: zero
hole_nil:cons1_0 :: nil:cons
hole_succ2_0 :: succ
hole_zero3_0 :: zero
gen_nil:cons4_0 :: Nat → nil:cons

Lemmas:
r(gen_nil:cons4_0(0), gen_nil:cons4_0(0), gen_nil:cons4_0(c), gen_nil:cons4_0(n6_0)) → gen_nil:cons4_0(0), rt ∈ Ω(1 + n60)

Generator Equations:
gen_nil:cons4_0(0) ⇔ nil
gen_nil:cons4_0(+(x, 1)) ⇔ cons(succ(zero), gen_nil:cons4_0(x))

No more defined symbols left to analyse.

(13) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
r(gen_nil:cons4_0(0), gen_nil:cons4_0(0), gen_nil:cons4_0(c), gen_nil:cons4_0(n6_0)) → gen_nil:cons4_0(0), rt ∈ Ω(1 + n60)

(14) BOUNDS(n^1, INF)